package org.qiyu.live.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2023-09-30
 * Time: 20:49
 */
@SpringBootApplication // 启动类
@EnableDiscoveryClient // 服务发现
public class GatewayApplication {
    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(GatewayApplication.class);
        // 响应式的
        springApplication.setWebApplicationType(WebApplicationType.REACTIVE);
        // 启动
        springApplication.run(args);
    }
}